package se.citerus.dddsample.data;

import org.springframework.jdbc.core.JdbcTemplate;


public class LocationDataGenerator extends AbstractDataGenerator {

	public void loadLocationData(JdbcTemplate jdbcTemplate) {
	    String locationSql =
	      "insert into Location (id, unlocode, name) " +
	      "values (?, ?, ?)";

	    Object[][] locationArgs = {
	      {1, "SESTO", "Stockholm"},
	      {2, "AUMEL", "Melbourne"},
	      {3, "CNHKG", "Hongkong"},
	      {4, "JPTOK", "Tokyo"},
	      {5, "FIHEL", "Helsinki"},
	      {6, "DEHAM", "Hamburg"},
	      {7, "USCHI", "Chicago"}
	    };
	    executeUpdate(jdbcTemplate, locationSql, locationArgs);
	}
}
